package cn.xiyan.baas.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.xiyan.baas.entity.FileEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ruiyanglee
 * @since 2020-08-25
 */
@Mapper
public interface FileMapper extends BaseMapper<FileEntity> {

    @Select("select * from file_entity where user_id = #{userId}")
    List<FileEntity> findByUserId(String userId);
}
